<?

class timer extends fetch {
	private $time_start;
	private $time_end;
	
	function __construct () {
		$this->time_start = microtime(true);
	}
	
	function stop () {
		$this->time_end = microtime(true);
	}
	
	function view ($round) {
		$time = $this->time_end - $this->time_start;
		
		return round($time, $round);	
	}
}
?>